﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopHuabao")]
    public class TopHuabao : BaseObject
    {
        //begin
        public TopHuabao()
        {}
        public TopHuabao(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _Id;
        public string Id
        {
            get
            {
                return _Id;
            }
            set
            {
                SetPropertyValue("Id", ref _Id, value);
            }
        }
        private DateTime _CreateDate;
        public DateTime CreateDate
        {
            get
            {
                return _CreateDate;
            }
            set
            {
                SetPropertyValue("CreateDate", ref _CreateDate, value);
            }
        }
        private DateTime _ModifiedDate;
        public DateTime ModifiedDate
        {
            get
            {
                return _ModifiedDate;
            }
            set
            {
                SetPropertyValue("ModifiedDate", ref _ModifiedDate, value);
            }
        }
        private string _Title;
        public string Title
        {
            get
            {
                return _Title;
            }
            set
            {
                SetPropertyValue("Title", ref _Title, value);
            }
        }
        private string _TitleShort;
        public string TitleShort
        {
            get
            {
                return _TitleShort;
            }
            set
            {
                SetPropertyValue("TitleShort", ref _TitleShort, value);
            }
        }
        private string _Tag;
        public string Tag
        {
            get
            {
                return _Tag;
            }
            set
            {
                SetPropertyValue("Tag", ref _Tag, value);
            }
        }
        private long _Weight;
        public long Weight
        {
            get
            {
                return _Weight;
            }
            set
            {
                SetPropertyValue("Weight", ref _Weight, value);
            }
        }
        private string _CoverPicUrl;
        public string CoverPicUrl
        {
            get
            {
                return _CoverPicUrl;
            }
            set
            {
                SetPropertyValue("CoverPicUrl", ref _CoverPicUrl, value);
            }
        }
        private long _Hits;
        public long Hits
        {
            get
            {
                return _Hits;
            }
            set
            {
                SetPropertyValue("Hits", ref _Hits, value);
            }
        }
        private string _ChannelId;
        public string ChannelId
        {
            get
            {
                return _ChannelId;
            }
            set
            {
                SetPropertyValue("ChannelId", ref _ChannelId, value);
            }
        }
        //end
    }
}
